package top.system.dept.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @ClassName: Item
 * @Author: Amosen
 * @Since: 2021/5/18
 */

// 封装仓库物资数据
public class Item {

    // 物品id
    private Integer id;

    // 物品名
    private String name;

    // 库存
    private Integer number;

    // 所属部门
    @JsonIgnore
    private Integer deptId;

    // 物品图片存储位置
    private String itemPic;

    public Item() {
    }

    public Item(Integer id, String name, Integer number, Integer deptId, String itemPic) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.deptId = deptId;
        this.itemPic = itemPic;
    }

    public String getItemPic() {
        return itemPic;
    }

    public void setItemPic(String itemPic) {
        this.itemPic = itemPic;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", deptId=" + deptId +
                '}';
    }
}
